]> dgit.raspbian.org Git - gnome-shell.git/commit
Use pre-split element classes and pseudo-classes to optimize matching
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 8 Nov 2012 15:41:31 +0000 (15:41 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 14 Nov 2012 19:24:26 +0000 (19:24 +0000)
commit5ae2f87ce9edc6b5ad4746eed6f08e35587df0fc
treee3f98dca74d1bf707b3aa1370ace31d716dadccf
parentc4f6619fbdd79f4494a5b43f2d27d449e2b4b75e
Use pre-split element classes and pseudo-classes to optimize matching

In my testing this cuts the longest time to dispatch(), when showing the
calendar menu for the first time, from 604 to 442 milliseconds,
while reducing additional_selector_matches_style() from 32% to 13% of
CPU time used.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687465
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
src/st/st-theme.c